import request from '@/utils/request'
// 首页
export function showIndex(data) {
  return request.get('/gateway/market/ecrInfo', {
    params: data
  })
}
// 基础信息管理模块

// 秤标定管理
export function retrieveBalanceInfo(data) {
  return request.get('/gateway/market/calInfo', {
    params: data
  })
}

export function retrieveHashInfo(hash) {
  return request({
    url: '/api/query',
    params: {
      'txId': hash
    },
    method: 'get',
    headers: {
      'key': '35167077652339955891165544540158107061563627640370455129518266212923225815276'
    } // 定义相应头

  })
}

// 交易信息模块

// 交易信息
export function retrieveDealInfo(data) {
  return request.get('/gateway/market/weight', {
    params: data
  })
}
